package com.ttg.web.juc.config;


import com.google.common.util.concurrent.ListeningExecutorService;
import com.ttg.web.juc.MoreExecutorServiceUtils;
import com.ttg.web.juc.TasktemplateHelper;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
* 功能描述：
* @Param: No such property: code for class: Script1
* @Return:
* @Author: liujie
* @Date: 2023/2/21 16:48
* @Description:
*/

@Configuration
@ConditionalOnProperty(
        prefix = "tlinx",
        value = "isJuc",
        havingValue="true")
public class JucAutoConfiguration  {
    @Bean
    public ListeningExecutorService listeningExecutorService() {
        return  MoreExecutorServiceUtils.init();
    }
}
